home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Loadstar 137
/
137.d81
/
b.star trip
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-08-26
|
5KB
|
210 lines
100 poke53280,0:poke53281,0
130 :
140 poke55,0:poke56,64:clr:a$=""
142 dv=peek(186):ifdv<8thendv=8
145 print"[147]":gosub60000
155 def fnd(i)=20-(len(an$(x,i))/2)
160 sys57812"unpacker.89",dv,0:poke780,0:poke781,0:poke782,201:sys65493
170 sys57812"package.o",dv,0:poke780,0:poke781,80:poke782,195:sys65493
180 sys57812"title.shp",dv,0:poke780,0:poke781,0:poke782,64:sys65493
182 sys57812"md print 9c00",dv,0:poke780,0:poke781,0:poke782,156:sys65493
190 poke251,64:poke252,224:poke253,204:sys51456
195 poke252,224:poke253,204:sys51459
200 ip=50000:unpack=51456:hgr=51459
210 ps=50006:ba=50009
212 diman$(10,20)
220 open2,dv,2,"star data,p,r"
222 j=1:k=0:fori=0to1:sysip,2,40:i=st
224 ifa$="*"thenj=j+1:k=0:goto228
226 k=k+1:an$(j,k)=a$
228 next:close2
230 readnp:dim r$(10),c(10)
240 forx=1tonp:readr$(x),c(x)
250 next
260 syshgr
270 forx=1tonp
280 gosub1810
285 fh=0:ifleft$(r$(x),2)="u."thenfh=1
290 sys57812r$(x),dv,0:poke780,0:poke781,0:poke782,64:sys65493
310 gosub1910:ifa$="q"ora$="[209]"thengosub1250
312 gosub2000
320 e(x)=peek(53281)
340 kk=0:poke198,0
355 ifz3=0then360
357 z4=z4+1:z4=z4and15
358 poke53281,z4
360 kk=kk+1:geta$:ifa$=""andkk<800then355
370 ifa$="q"ora$="[209]"thengosub 1250
380 ifa$="s"ora$="[211]"then 470
381 ifa$<>"p"anda$<>"[208]"then390
382 syshg:poke53281,0:print"[147][159]"
383 poke214,18:print:print"[199]et 8-pin printer ready and press [211][208][193][195][197]
384 [153]" (NULL)ress any other key to (NULL)(NULL)(NULL) print
385 geta$:ifa$=""then385
386 sysun:syshg:ifa$<>" "then340
387 sys156*256
388 goto340
390 ifa$<>chr$(133)then410
400 z1=z1+1:z1=z1and15
405 poke53280,z1:goto340
410 ifa$<>chr$(134)then416
412 z2=z2+1:z2=z2and15
415 poke53281,z2:goto340
416 ifa$<>chr$(135)then420
417 z3=1-z3:ifz3=0thenpoke53281,e(x)
419 goto340
420 syshgr:print"[147]":poke198,0:next x
430 goto270
440 :
450 rem save koala pic
460 :
470 sys hgr
480 poke53280,0:poke53281,0
490 print"[147][154]":poke214,11:print
500 print" [211]ave this unpacked picture? (y[154]/n[154])":poke198,0
510 geta$:ifa$<>"y"anda$<>"n"then510
520 ifa$="y"then560
530 goto1110
550 :
560 print"[147][154]":poke214,9:print
570 print" [201]nsert save disk and enter a filename."
580 :
590 print" [206]ame : ---------------[145][157][157][157][157][157][157][157][157][157][157][157][157][157][157][157][193][146]";
600 ln%=14:sp$=" "
610 gosub680:ifnm$=""then1110
620 nm$=left$(chr$(129)+nm$+sp$,15)
630 print"[154] save drive #: (8/9/0/1/2/3/4/5/6/7)
632 [161]a$:[139]a$[178]""[167]632
634 [139]a$[179]"0"[176]a$[177]"9"[167]632
636 [151]50178,[197](a$)[171]10[172]([197](a$)[179]8)
638 [137]790
650 [137]820
680 [143] --- input routine ---
690 nm$[178]"":x%[178]0:c%[178][194](646)
700 [153]"print#tocmd";:[151]646,c%
710 [161]a$:[139]a$[178]""[167]710
720 a%[178][198](a$)
730 [139]a%[178]20[175]x%[177]0[167]x%[178]x%[171]1:nm$[178][200](nm$,[195](nm$)[171]1):[153]" cmdcmd";:[137]700
740 [139]a%[178]20[167]710
750 [139]a%[178]13[167][153]" ":[142]
760 [139]x%[178]ln%[167]710
770 [139]a$[179]" "[176]a$[177]"z"[175]a$[179]"atn"[176]a$[177]"(NULL)"[176]a%[178]34[167]710
780 nm$[178]nm$[170]a$:[153]""a$;:x%[178]x%[170]1:[137]700
790 :
800 [143] -- check for 'file exists' --
810 :
820 [159]15,dv,15,"r0:"[170]nm$[170]"="[170]nm$:[132]15,er,er$:[160]15
830 [139]er[179][177]62[167][141]1160:[137]1110
840 :
850 [143] --- save pic ---
860 :
920 [141]2000:nm$[178]nm$[170]",p,w"
930 [158]ps,nm$:[158]hgr
950 :
960 [143] --- check for errors ---
970 :
980 [159]15,dv,15:[132]15,er,er$,y$,z$:[160]15
990 [139]er[167][141]1160:[137]490
1000 :
1010 [143] -- everything ok ---
1020 :
1030 [151]53280,0:[151]53281,0
1040 [153]"loadcont":[151]214,7:[153]
1050 [153]" (NULL)aving complete."
1060 [153]" (NULL)eplace the disk if necessary"
1070 [153]" then press a key to continue."
1080 [161]a$:[139]a$[179][177]" "[167]1080
1090 [159]15,dv,15,"r0:package.o=package.o":[132]15,er:[160]15
1100 [139]er[179][177]63 [167] 1040
1110 [158]hgr:[137]420
1120 :
1130 :
1140 :
1150 [143] --- print dos error msg ---
1160 :
1170 [151]53280,.:[151]53281,.:[153]"load for str$ right$ (NULL) (NULL) val (NULL) (NULL) (NULL) (NULL) !
1180 poke214,10:print
1190 a$="[152][197]rror #"+str$(er)+"[152],"+er$
1200 x%=22-len(a$)/2:printtab(x%);a$
1210 poke214,21:print
1220 print"[152] [208]ress [211][208][193][195][197][152] to continue."
1230 geta$:ifa$<>" "then1230
1240 return
1250 o=peek(53270)and16
1255 ifothensys51459
1260 poke53281,0:poke53280,0
1270 print"[147][154] [193]re you sure you want to quit? (y[154]/n[154])"
1280 poke198,0:wait198,1:getag$
1290 ifag$="y"orag$="[217]"then1330
1295 ifothensys51459
1300 return
1320 rem quit
1330 goto40000
1380 rem data <title>,<border color>
1390 data 9
1400 data captain k.shp,0
1410 data before.shp,0
1420 data after.shp,0
1430 data sheepoid.shp,0
1440 data gastron.shp,0
1450 data g's house.shp,0
1460 data bridgeworld.shp,0
1470 data quadpod.shp,0
1480 data trash.shp,0
1500 :
1770 print"";
1800 :
1810 poke53281,6:poke53280,6
1820 print"[147][144][176][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][174]"
1830 forqx=1to13
1840 print"[221]"tab(38)"[221]":next
1850 print"[173][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][189]"
1860 forlx=217to217+26:pokelx,(peek(lx)or128):next
1870 print"[144]"
1872 printtab(fnd(1))an$(x,1):print"[155]"
1880 fori=2to12
1882 printtab(fnd(i))an$(x,i)
1886 next
1900 return
1910 kk=0
1915 poke214,14:print:print"[144] [215]hile the slide is showing..."
1916 print" [198]1 [158]- changes border color"
1917 print" [198]3 [158]- changes background color"
1918 print" [198]5 [158]- toggles light show"
1919 print" [211] [158]- takes you to [211][193][214][197] routine"
1920 print" [208] [158]- takes you to [208][210][201][206][212] routine"
1921 print" [209] [158]- quits"
1925 poke214,23:print
1930 print"[144][208]ress [209] to quit - [193]ny other to continue[145]"
1940 kk=kk+1:geta$:ifa$<>""orkk>1000thenreturn
1950 goto1940
1980 :
1990 :
2000 print"[147]";:iffhthenpoke254,0:sysba:goto2040
2020 poke251,64:poke252,224:poke253,204
2030 sysun
2040 poke53280,c(x):poke252,224:poke253,204:syshgr:return
2050 return
10000 dv=peek(186):n$="b.star trip":open15,dv,15,"s0:"+n$:close15:saven$,dv:end
40000 fori=0to21:poke828+i,8+i:next
40010 ifdv<8ordv>29ordv=8then40030
40020 a=peek(828):b=peek(828+dv-8):poke828,b:poke828+dv-8,a
40030 a$="hello connect":forj=8to29:i=peek(828+j-8):ifi=14thennext
40040 close2:open2,i,2:close2:ifstthen40060
40050 close15:open15,i,15,"r0:"+a$+"="+a$:input#15,er:close15:ifer=63then40070
40060 next:print"[147]":poke53272,23:poke186,8:end
40070 q$=chr$(34):poke646,peek(53281):print"[147]":poke53272,23
40080 print"[147]p[207]2048,0:p[207]44,8:p[207]43,1:p[207]56,160:p[207]55,0:clr:l[207]"q$a$q$","i
40090 print"run:":poke631,13:poke632,13:poke198,2:end
60000 print"[147]":z$=" [152] ":poke214,10:print
60010 print" [155][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184]":fori=0to9:printz$:next
60020 print" [151][185][185][185][185][185][185][185][185][185][185][185][185][185][185][185][185][185][185][185][185][185][185][185][185][185][185][185][185][185][185][185][185][185][185][185][185][185][185][152]"
60030 z$(0)="[211] [212] [193] [210] [212] [210] [201] [208]" :z$(1)="by [215]alt [200]arned
60040 z$(2)[178]"(len) 1995 by (NULL)oftdisk (NULL)ublishing"[170][199](13)
60050 z$(3)[178]"(NULL)his program is the copyrighted work
60060 z$(4)="of [211][207][198][212][196][201][211][203] [208][213][194][204][201][211][200][201][206][199]. [201]t is not"
60070 z$(5)="shareware or in the public domain."
60080 z$(6)="[212]o subscribe call 1-800-594-